Repository navigation
uv: continue Python installation after bootstrapping uv - #1872
Merged
Eleanor Boyd (eleanorjboyd) merged 3 commits intoOct 6, 2026
Merged
Eleanor Boyd (eleanorjboyd) merged 3 commits into
Eleanor Boyd (eleanorjboyd) merged 3 commits into
Conversation
Keep the standalone installer's uv path for verification, Python installation and listing, and subsequent uv operations without changing the extension host PATH. Add bootstrap, destination, and cache regression coverage for microsoft#1871. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Eleanor Boyd (eleanorjboyd)
marked this pull request as ready for review
October 6, 2026 20:12
Eleanor Boyd (eleanorjboyd)
enabled auto-merge (squash)
October 6, 2026 20:12
Ben Villalobos (benvillalobos)
approved these changes
Oct 6, 2026
Eleanor Boyd (eleanorjboyd)
added a commit
that referenced
this pull request
Oct 12, 2026
Fixes #1832. Depends on #1872, which retains a newly installed uv executable for the current extension-host session. ## Problem Creating a **Global** environment on a machine without uv failed with **Failed to fetch available Python versions**. The flow attempted `uv python list` before reaching the existing uv installation path. ## User experience When uv is missing, Global environment creation now explains why it is required and offers: - **Install uv** — installs uv, then continues directly to the Python version picker using #1872's retained executable. - **Other installation options** — opens the official [Install a Python interpreter](https://code.visualstudio.com/docs/python/python-tutorial#_install-a-python-interpreter) guide. - **Cancel** — cancels quietly without showing a misleading version-fetch error. If uv installation fails, the error offers **View Logs**. When uv is already available, the version picker opens without an additional prompt. This prevents a broken first-run experience without introducing lasting configuration or PATH side effects. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1871.
This prevents a broken first-run experience without introducing lasting configuration or PATH side effects.
Problem
When uv's install directory is not already on the extension host's PATH, the official installer can succeed but the subsequent bare
uv --versionlookup still fails. Python installation then stops atuvNotOnPath.Updating shell startup files does not update the already-running extension host's environment. Resetting the availability cache alone cannot fix this.
Changes